//
//  ViewController.m
//  MLXCamera
//
//  Created by SY on 2019/2/20.
//  Copyright © 2019 shenyue. All rights reserved.
//

#import "ViewController.h"
#import "MLXCameraHead.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *imageV;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}
-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
     self.navigationController.navigationBar.hidden = NO;
}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    MLXSaoYiSaoViewController *vc = [[MLXSaoYiSaoViewController alloc] init];
////    [self presentViewController:vc animated:YES completion:nil];
//    vc.imagTintColorColor = [UIColor orangeColor];
//    vc.isIdentifyPhoto = YES;
//    vc.isAutoVideoZoom = YES;
//    [self.navigationController pushViewController:vc animated:YES];
    MLXVideoViewController *vc = [MLXVideoViewController getPhotoVideoViewControllerStroke:nil completeBlock:^(NSURL *urlValue, UIImage *image, BOOL isCancel, MLXVideoViewController *vc) {
        NSLog(@"");
        self.imageV.image = image;
    }];
    vc.isAllowPhotography = NO;
//    vc.isAllowTakePhotos = NO;
    [self.navigationController pushViewController:vc animated:YES];
}

@end
